package com.fis.vaadin.component;

import com.fis.vaadin.util.ModuleManager;
import com.vaadin.ui.MenuBar;
import com.vaadin.ui.MenuBar.MenuItem;

public class FMenuItemCommand implements MenuBar.Command
{
	private String className;
	private TreeItemId itemId;
	
	public FMenuItemCommand(TreeItemId itemId)
	{
		super();
		this.itemId = itemId;
		this.className = itemId.getValue().toString();
	}

	public String getClassName()
	{
		return className;
	}

	public void setClassName(String className)
	{
		this.className = className;
	}

	public TreeItemId getItemId()
	{
		return itemId;
	}

	public void setItemId(TreeItemId itemId)
	{
		this.itemId = itemId;
	}

	@Override
	public void menuSelected(MenuItem selectedItem)
	{
//		itemId.selectThisItem();
		ModuleManager.showSize();
	}
	
}
